<!--<include file="public+header" />-->

<!--{~$sCalendarLang=Core_Extend::calendar()}-->
<script type="text/javascript" src="<!--{:__PUBLIC__}-->/js/calendar/datepicker/WdatePicker.js"></script>

<!--{:Core_Extend::emotion()}-->

<!--{script}-->
$(function(){
	$('.jiajucompanyguestbook_content').emotionsToHtml();
});

function replyGuestbook(nId){
	windsforceAjax(Q.U('app/config?id=<!--{:Q::G('id')}-->&controller=jiajucompanyguestbook&action=reply&value='+nId),'回复留言','',completeReplyguestbook,'',600,270,'',0,0);
}

function completeReplyguestbook(){
	Q.AjaxSubmit('replyAdd',Q.U('app/config?id=<!--{:Q::G('id')}-->&controller=jiajucompanyguestbook&action=reply'),'',function(data,status){
		if(status==1){
			$('#jiajucompanyguestbookreply-'+data.guestbook_id).html('['+data.user_name+']&nbsp;'+data.reply_content+'&nbsp;'+data.reply_time);
		}

		return true;
	});
}
<!--{/script}-->

	<section class="secondary_bar">
		<div class="breadcrumbs_container">
			<article class="breadcrumbs"><a href="<!--{:Q::U('public/fmain')}-->"><!--<lang package='Template'>-->主页<!--</lang>--></a> <div class="breadcrumb_divider"></div> <a class="current">网友留言列表</a></article>
		</div>
	</section>

	<section id="main" class="column">

		<article class="module width_full">
			<header><h3><!--<lang package='Template'>-->操作提示<!--</lang>--></h3>
			</header>
			<div class="module_content">
				<ul>
					<li>这里为网友留言数据列表，你可以对留言进行回复。</li>
				</ul>
			</div>

			<div class="module_content">
				<form method='get' action="<!--{:Q::U( 'app/config' )}-->" class="quick_search">
					<table cellspacing="3" cellpadding="3">
						<tr>
							<th><!--<lang package='Template'>-->编号<!--</lang>--></th>
							<td><input type="text" name="jiajucompanyguestbook_id" title="<!--<lang package='Template'>-->编号<!--</lang>-->" value="<!--{:Q::G('jiajucompanyguestbook_id')}-->" onkeyup="this.value = this.value.replace(/[^-0-9]/g, '');" />
							<th><!--<lang package='Template'>-->结果排序<!--</lang>--></th>
							<td>
								<select name="order_">
									<option value="" <!--{if !Q+G('order_')}-->selected<!--{/if}-->><!--<lang package='Template'>-->排序字段<!--</lang>--></option>
									<option value="jiajucompanyguestbook_id" <!--{if Q+G('order_')=='jiajucompanyguestbook_id'}-->selected<!--{/if}-->><!--<lang package='Template'>-->编号<!--</lang>--></option>
									<option value="jiajucompanyguestbook_status" <!--{if Q+G('order_')=='jiajucompanyguestbook_status'}-->selected<!--{/if}-->><!--<lang package='Template'>-->状态<!--</lang>--></option>
									<option value="create_dateline" <!--{if Q+G('order_')=='create_dateline'}-->selected<!--{/if}-->><!--<lang package='Template'>-->添加时间<!--</lang>--></option>
								</select>
								<select name="sort_">
									<option value="" <!--{if !Q+G('sort_')}-->selected<!--{/if}-->><!--<lang package='Template'>-->默认排序<!--</lang>--></option>
									<option value="desc" <!--{if Q+G('sort_')=='desc'}-->selected<!--{/if}-->><!--<lang package='Template'>-->递增<!--</lang>--></option>
									<option value="asc" <!--{if Q+G('sort_')=='asc'}-->selected<!--{/if}-->><!--<lang package='Template'>-->递减<!--</lang>--></option>
								</select>
								<select name="perpage">
									<option value="" <!--{if !Q+G('perpage')}-->selected<!--{/if}-->><!--<lang package='Template'>-->默认每页数量<!--</lang>--></option>
									<option value="10" <!--{if Q+G('perpage')==10}-->selected<!--{/if}-->><!--<lang package='Template'>-->每页数量<!--</lang>-->(10)</option>
									<option value="20" <!--{if Q+G('perpage')==20}-->selected<!--{/if}-->><!--<lang package='Template'>-->每页数量<!--</lang>-->(20)</option>
									<option value="50" <!--{if Q+G('perpage')==50}-->selected<!--{/if}-->><!--<lang package='Template'>-->每页数量<!--</lang>-->(50)</option>
									<option value="100" <!--{if Q+G('perpage')==100}-->selected<!--{/if}-->><!--<lang package='Template'>-->每页数量<!--</lang>-->(100)</option>
									<option value="200" <!--{if Q+G('perpage')==200}-->selected<!--{/if}-->><!--<lang package='Template'>-->每页数量<!--</lang>-->(200)</option>
									<option value="500" <!--{if Q+G('perpage')==500}-->selected<!--{/if}-->><!--<lang package='Template'>-->每页数量<!--</lang>-->(500)</option>
								</select>
							</td>
						</tr>
						<tr>
							<th>UID</th>
							<td><input type="text" name="user_id" title="UID" value="<!--{:Q::G('user_id')}-->" onkeyup="this.value = this.value.replace(/[^-0-9]/g,'');" /></td>
							<th><!--<lang package='Template'>-->添加时间<!--</lang>--></th>
							<td>
								<input type="text" id="start_time" name="start_time" value="<!--{:Q::G('start_time')}-->" onfocus="WdatePicker({el:'start_time',skin:'ext',lang:'<!--{$sCalendarLang}-->',dateFmt:'yyyy-MM-dd'})">
								&nbsp;~&nbsp;
								<input type="text" id="end_time" name="end_time" value="<!--{:Q::G('end_time')}-->"  onfocus="WdatePicker({el:'end_time',skin:'ext',lang:'<!--{$sCalendarLang}-->',dateFmt:'yyyy-MM-dd'})">
							</td>
						</tr>
						<tr>
							<th>手机号码</th>
							<td><input type="text" name="jiajucompanyguestbook_mobile" title="手机号码" value="<!--{:Q::G('jiajucompanyguestbook_mobile')}-->" onkeyup="this.value = this.value.replace(/[^-0-9]/g,'');" /></td>
							<th><!--<lang package='Template'>-->状态<!--</lang>--></th>
							<td><select name="jiajucompanyguestbook_status">
									<option value="" <!--{if !isset($nIsStatus)}-->selected<!--{/if}-->><!--<lang package='Template'>-->全部<!--</lang>--></option>
									<option value="1" <!--{if isset($nIsStatus) && $nIsStatus==1}-->selected<!--{/if}-->><!--<lang package='Template'>-->已审<!--</lang>--></option>
									<option value="0" <!--{if isset($nIsStatus) && $nIsStatus===0}-->selected<!--{/if}-->><!--<lang package='Template'>-->待审<!--</lang>--></option>
								</select>
							</td>
						</tr>
						<tr>
							<th>回复内容</th>
							<td>
								<input type="text" name="jiajucompanyguestbook_replycontent" title="回复内容" value="<!--{:Q::G('jiajucompanyguestbook_replycontent')}-->" />
							</td>
							<th>商家编号&nbsp;<span class="red" style="cursor:pointer;font-weight:normal;" onclick="$('#jiajucompany_id').val('');$('#jiajucompany_fullname').text('');">x</span></th>
							<td><input type="text" name="jiajucompany_id" id="jiajucompany_id" title="商家编号" value="<!--{:Q::G('jiajucompany_id')}-->" onkeyup="this.value = this.value.replace(/[^-0-9]/g, '');" class="left" readonly="true"/>&nbsp;
								<input type="button" class="alt_btn" onclick="selectCompany('jiajucompany');" value="商家">&nbsp;
								<span id="jiajucompany_fullname" style="color:red;"><!--{:Core_Extend::getCompany(Q::G('jiajucompany_id'))}--></span>
							</td>
						</tr>
						<tr>
							<th>作者</th>
							<td><input type="text" name="jiajucompanyguestbook_name" title="作者" value="<!--{:Q::G('jiajucompanyguestbook_name')}-->"></td>
							<th><!--<lang package='Template'>-->选择站点<!--</lang>--></th>
							<td><!--{:Core_Extend::showSite(array('value'=>Q::G('site_id')))}--></td>
						</tr>
						<tr>
							<th>QQ号码</th>
							<td><input type="text" name="jiajucompanyguestbook_qq" title="QQ号码" value="<!--{:Q::G('jiajucompanyguestbook_qq')}-->" onkeyup="this.value = this.value.replace(/[^-0-9]/g,'');" /></td>
							<td colspan="2">
								<input type="text" name="jiajucompanyguestbook_content" title="留言内容" value="<!--{:Q::G('jiajucompanyguestbook_content')}-->" class="quicksearch_text">
								&nbsp;<input type="submit" id="" value="<!--<lang package='Template'>-->查询<!--</lang>-->" onclick="" class="alt_btn">
							</td>
						</tr>
					</table>
					<!--{if isset($bIsRecycleList)}-->
					<input type="hidden" name="recycle_" value="1"/>
					<!--{/if}-->
					<input type="hidden" name="c" value="<!--{:MODULE_NAME}-->"/>
					<input type="hidden" name="a" value="<!--{:ACTION_NAME}-->"/>
					<input type="hidden" name="id" value="<!--{$_GET['id']}-->"/>
					<input type="hidden" name="controller" value="jiajucompanyguestbook"/>
				</form>
			</div>
		</article>
		
		<article class="module width_full">
			<header>
				<h3 class="tabs_involved"><a href="<!--{:Admin_Extend::base(array('controller'=>'jiajucompanyguestbook'))}-->">网友留言列表</a>
					<!--{if isset($bIsRecycleList)}-->&nbsp;<sup><a href="<!--{:Admin_Extend::base(array('controller'=>'jiajucompanyguestbook','recycle_'=>1))}-->" title="<!--<lang package='Template'>-->回收站<!--</lang>-->" style="color:red;">[<!--<lang package='Template'>-->回收站<!--</lang>-->]</a></sup>
					<!--{/if}-->
				</h3>
				<ul class="tabs">
					<li class="active"><a href="<!--{:Admin_Extend::base()}-->"><!--<lang package='Template'>-->应用入口<!--</lang>--></a></li>
					<!--{if isset($bIsRecycleList)}-->
					<li><a class="tab_clearrecycle" href="javascript:void(0);" onclick="clearRecycle('<!--{$_GET['id']}-->','jiajucompanyguestbook')"><!--<lang package='Template'>-->清空回收站<!--</lang>--></a></li>
					<!--{/if}-->
					<li><a class="tab_edit" href="javascript:void(0);" onclick="editApp('<!--{$_GET['id']}-->','jiajucompanyguestbook')"><!--<lang package='Template'>-->编辑<!--</lang>--></a></li>
					<li><a class="tab_delete" href="javascript:void(0);" onclick="foreverdelApp<!--{if isset($bIsRecycleList)}-->Deep<!--{/if}-->('<!--{$_GET['id']}-->','jiajucompanyguestbook')"><!--{if isset($bIsRecycleList)}--><!--<lang package='Template'>-->彻底删除<!--</lang>--><!--{d*else}--><!--<lang package='Template'>-->删除<!--</lang>--><!--{/if}--></a></li>
					<li><!--{if isset($bIsRecycleList)}-->
						<a class="tab_list" href="<!--{:Admin_Extend::base(array('controller'=>'jiajucompanyguestbook'))}-->" title="<!--<lang package='Template'>-->列表<!--</lang>-->"><img src="<!--{:At::path('icn_list.png')}-->"/></a>
						<!--{d*else}-->
						<a class="tab_recycle" href="<!--{:Admin_Extend::base(array('controller'=>'jiajucompanyguestbook','recycle_'=>1))}-->" title="<!--<lang package='Template'>-->回收站<!--</lang>-->"><img src="<!--{:At::path('icn_recycle.png')}-->"/></a>
						<!--{/if}-->
					</li>
				</ul>
			</header>
			<div class="module_content">
				<table class="tablesorter" cellspacing="0" id="checkList">
					<thead>
						<tr>
							<th width="20"><input type="checkbox" class="input-short" onclick="checkAll('checkList')"></th> 
							<th width="85"><a href="<!--{:Admin_Extend::soryBy('jiajucompanyguestbook_id',$sSortByUrl,array('controller'=>'jiajucompanyguestbook'))}-->" <!--{:Admin_Extend::sortField('jiajucompanyguestbook_id')}-->><!--<lang package='Template'>-->编号<!--</lang>--></a></th>
							<th>留言内容</th>
							<th width="220px">商家</th>
							<th width="180px">联系方式</th>
							<th width="100px">添加时间</th>
							<th width="50px">状态</th>
							<th width="70px">操作</th>
						</tr>
					</thead>
					<tbody>
						<!--{if !empty($arrLists)}-->
						<!--<foreach for=arrLists>-->
						<tr id="datalist-<!--{$value['jiajucompanyguestbook_id']}-->">
							<td><input type="checkbox" class="input-short" name="key" value="<!--{$value.jiajucompanyguestbook_id}-->"></td>
							<td><!--{$value.jiajucompanyguestbook_id}--></td>
							<td><div class="jiajucompanyguestbook_content"><span style="color:#ED145B;">[<!--{$value['jiajucompanyguestbook_name']}-->]</span>&nbsp;<!--{$value['jiajucompanyguestbook_content']|Core_Extend+ubb=false}-->&nbsp;<a href="javascript:void(0);" onclick="viewPreview('<!--{$value['jiajucompanyguestbook_id']}-->','jiajucompanyguestbook','<!--{:Q::G('id','G')}-->');">[审核]</a></div></div>
								<p style="color:#0DD07F;" id="jiajucompanyguestbookreply-<!--{$value['jiajucompanyguestbook_id']}-->">
									<!--{if $value['jiajucompanyguestbook_replycontent']}-->
									[<!--{$value['jiajucompanyguestbook_replyusername']}-->]&nbsp;<!--{$value['jiajucompanyguestbook_replycontent']|Core_Extend+ubb=false}-->&nbsp;<!--{$value['jiajucompanyguestbook_replytime']|date='Y-m-d H:i',**}-->
									<!--{/if}-->
								</p>
								<div class="row-actions">
									<span class='edit'><a href="javascript:editApp('<!--{$_GET['id']}-->','jiajucompanyguestbook','<!--{$value.jiajucompanyguestbook_id}-->')"><!--<lang package='Template'>-->编辑<!--</lang>--></a>|</span>
									<span class='delete'><a href="javascript:foreverdelApp<!--{if isset($bIsRecycleList)}-->Deep<!--{/if}-->('<!--{$_GET['id']}-->','jiajucompanyguestbook','<!--{$value.jiajucompanyguestbook_id}-->')"><!--{if isset($bIsRecycleList)}--><!--<lang package='Template'>-->彻底删除<!--</lang>--><!--{d*else}--><!--<lang package='Template'>-->删除<!--</lang>--><!--{/if}--></a></span>
									</span>
								</div>
								<div id="adminpreview-<!--{$value['jiajucompanyguestbook_id']}-->" class="adminpreview"></div>
							</td>
							<td><!--{$value['jiajucompany_fullname']}--></td>
							<td>
								电话：<span style="color:#ED145B;"><!--{if $value['jiajucompanyguestbook_mobile']}--><!--{$value['jiajucompanyguestbook_mobile']}--><!--{d*else}-->无<!--{/if}--></span><br/>
								QQ：&nbsp;&nbsp;<span style="color:#0DD07F;"><!--{if $value['jiajucompanyguestbook_qq']}--><!--{$value['jiajucompanyguestbook_qq']}--><!--{d*else}-->无<!--{/if}--></span>
							</td>
							<td><span class="<!--{:Admin_Extend::dateColor($value['create_dateline'])}-->"><!--{$value['create_dateline']|date='Y-m-d',**}--></span><br/>
								<span class="smallDatecolor"><!--{$value['create_dateline']|date='H:i',**}--></span>
							</td>
							<td><!--{:Admin_Extend::getStatus($value['jiajucompanyguestbook_status'])}--></td>
							<td>
								<!--<if condition="$value['jiajucompanyguestbook_status'] eq 1" >--><a href="javascript:forbidApp('<!--{$_GET['id']}-->','jiajucompanyguestbook','<!--{$value.jiajucompanyguestbook_id}-->');"><input type="image" src="<!--{:At::path('icn_trash.png')}-->" title="<!--<lang package='Template'>-->禁用<!--</lang>-->"></a><!--<else/>-->
								<a href="javascript:resumeApp('<!--{$_GET['id']}-->','jiajucompanyguestbook','<!--{$value.jiajucompanyguestbook_id}-->');"><input type="image" src="<!--{:At::path('icn_jump_back.png')}-->" title="<!--<lang package='Template'>-->恢复<!--</lang>-->"></a><!--</if>-->
								<a href="javascript:editApp('<!--{$_GET['id']}-->','jiajucompanyguestbook','<!--{$value.jiajucompanyguestbook_id}-->')"><input type="image" src="<!--{:At::path('icn_edit.png')}-->" title="<!--<lang package='Template'>-->编辑<!--</lang>-->"></a><br/>
								<a href="javascript:replyGuestbook('<!--{$value['jiajucompanyguestbook_id']}-->');">回复</a>
							</td>
						</tr>
						<!--</foreach>-->
						<!--{d*else}-->
						<tr>
							<td colspan="8">暂时没有发现任何记录</td>
						</tr>
						<!--{/if}-->
					</tbody>
				</table>
			</div>

			<div class="module_content operate_box">
				<div class="left">
					<!--{$sPageNavbar}-->
				</div>
				<div class="clearfix"></div>
			</div>
		</article>

<!--<include file="public+footer">-->